class Batters:
    def _init_(self, name):
        self.name = name
        self.battingAverage = 0
        self.hits = 0
        self.atBats = 0
        self.runsBattedIn = 0
        self.homeRuns = 0
        


Catcher1 = Batters()
Catcher1.name = 'Jarrod Saltalamacchia'
Catcher1.battingAverage= .252
Catcher1.hits= 52
Catcher1.atBats= 205
Catcher1.runsBattedIn= 37
Catcher1.homeRuns = 16

firstBaseman1 = Batters()
firstBaseman1.name = 'Adrian Gonzales'
firstBaseman1.battingAverage= .272
firstBaseman1.hits= 85
firstBaseman1.atBats = 79
firstBaseman1.runsBattedIn= 43
firstBaseman1.homeRuns = 6

secondBaseman = Batters()
secondBaseman.name = 'Dustin Pedroia'
secondBaseman.battingAverage = .265
secondBaseman.hits = 79
secondBaseman.atBats = 289
secondBaseman.runsBattedIn = 32
secondBaseman.homeRuns = 6

shortStop = Batters()
shortStop.name = 'Mike Aviles'
shortStop.battingAverage = .266
shortStop.hits = 81
shortStop.atBats = 305
shortStop.runsBattedIn = 43
shortStop.homeRuns = 9

thirdBaseman = Batters()
thirdBaseman.name = 'Will Middlebrooks'
thirdBaseman.battingAverage = .298
thirdBaseman.hits = 51
thirdBaseman.atBats = 171
thirdBaseman.runsBattedIn = 37
thirdBaseman.homeRuns = 10

outfield1 = Batters()
outfield1.name = 'Jacoby Ellsbury'
outfield1.battingAverage = 0
outfield1.hits = 0
outfield1.atBats = 0
outfield1.runsBattedIn = 0
outfield1.homeRuns = 0

outfield2 = Batters()
outfield2.name = 'Carl Crawford'
outfield2.battingAverage = 0
outfield2.hits = 0
outfield2.atBats = 0
outfield2.runsBattedIn = 0
outfield2.homeRuns = 0

outfield3 = Batters()
outfield3.name = 'Daniel Nava'
outfield3.battingAverage = .292
outfield3.hits = 42
outfield3.atBats = 143
outfield3.runsBattedIn = 26
outfield3.homeRuns = 3

outfield4 = Batters()
outfield4.name = 'Ryan Sweeney'
outfield4.battingAverage = .292
outfield4.hits = 50
outfield4.atBats = 171
outfield4.runsBattedIn = 13
outfield4.homeRuns = 0

outfield5 = Batters()
outfield5.name = 'Cody Ross'
outfield5.battingAverage = .287
outfield5.hits = 52
outfield5.atBats = 181
outfield5.runsBattedIn = 39
outfield5.homeRuns = 12

outfield6 = Batters()
outfield6.name = 'Scott Podsednik'
outfield6.battingAverage = .262
outfield6.hits = 39
outfield6.atBats = 149
outfield6.runsBattedIn = 7
outfield6.homeRuns = 1

catcher2 = Batters()
catcher2.name = 'Kelly Shoppach'
catcher2.battingAverage = .267
catcher2.hits = 24
catcher2.atBats = 90
catcher2.runsBattedIn = 12
catcher2.homeRuns = 4

firstBaseman2 = Batters()
firstBaseman2.name = 'Lars Anderson'
firstBaseman2.battingAverage = .125
firstBaseman2.hits = 1
firstBaseman2.atBats = 8
firstBaseman2.runsBattedIn = 0
firstBaseman2.homeRuns = 0

outfield7 = Batters()
outfield7.name = 'Ryan Kalish'
outfield7.battingAverage = .250
outfield7.hits = 10
outfield7.atBats = 40
outfield7.runsBattedIn = 4
outfield7.homeRuns =0

designatedHitter = Batters()
designatedHitter.name = 'David Ortiz'
designatedHitter.battingAverage = 301
designatedHitter.hits = 88
designatedHitter.atBats = 292
designatedHitter.runsBattedIn = 54
designatedHitter.homeRuns = 21

thirdBaseman2 = Batters()
thirdBaseman2.name = 'Nick Punto'
thirdBaseman2.battingAverage = .182
thirdBaseman2.hits = 16
thirdBaseman2.atBats = 87
thirdBaseman2.runsBattedIn = 7
thirdBaseman2.homeRuns = 1

outfield8 = Batters()
outfield8.name = 'Marlon Byrd'
outfield8.battingAverage = .270
outfield8.hits = 27
outfield8.atBats = 100
outfield8.runsBattedIn = 7
outfield8.homeRuns =1

outfield9 = Batters()
outfield9.name = 'Darnell McDonald'
outfield9.battingAverage = .214
outfield9.hits = 18
outfield9.atBats = 84
outfield9.runsBattedIn = 9
outfield9.homeRuns = 2

outfield10 = Batters()
outfield10.name = 'Che-Hsuan Lin'
outfield10.battingAverage = .200
outfield10.hits = 1
outfield10.atBats = 5
outfield10.runsBattedIn = 0
outfield10.homeRuns = 0

class Pitchers:
    def _init_(self, name):
        self.name
        self.wins
        self.losses
        self.era
        self.strikeOuts
        self.games
        self.saves

starter1 = Pitchers()
starter1.name = 'Josh Beckett'
starter1.wins = 4
starter1.losses = 7
starter1.era = 4.06
starter1.strikeOuts = 60
starter1.games = 13
starter1.saves = 0

starter2 = Pitchers()
starter2.name = 'Jon Lester'
starter2.wins = 5
starter2.losses = 5
starter2.era = 4.33
starter2.strikeOuts = 88
starter2.games = 17
starter2.saves = 0

starter3 = Pitchers()
starter3.name = 'Felix Doubront'
starter3.wins = 8
starter3.losses = 4
starter3.era = 4.42
starter3.strikeOuts = 91
starter3.games = 16
starter3.saves = 0

starter4 = Pitchers()
starter4.name = 'Daniel Bard'
starter4.wins = 5
starter4.losses = 6
starter4.era = 5.24
starter4.strikeOuts = 34
starter4.games = 11
starter4.saves = 0

starter5 = Pitchers()
starter5.name = 'Clay Buchholz'
starter5.wins = 8
starter5.losses = 2
starter5.era = 5.53
starter5.strikeOuts = 58
starter5.games = 14
starter5.saves = 0

starter6 = Pitchers()
starter6.name = 'Daisuke Matsuzaka'
starter6.wins = 0
starter6.losses = 3
starter6.era = 6.65
starter6.strikeOuts = 20
starter6.games = 5
starter6.saves = 0

middleMan1 = Pitchers()
middleMan1.name = 'Scott Atchison'
middleMan1.wins = 2
middleMan1.losses = 1
middleMan1.era = 1.47
middleMan1.strikeOuts = 31
middleMan1.games = 34
middleMan1.saves = 0

middleMan2 = Pitchers()
middleMan2.name = 'Matt Albers'
middleMan2.wins = 2
middleMan2.losses = 0
middleMan2.era = 2.53
middleMan2.strikeOuts =19
middleMan2.games = 29
middleMan2.saves = 0

middleMan3 = Pitchers()
middleMan3.name = 'Franklin Morales'
middleMan3.wins = 1
middleMan3.losses = 1
middleMan3.era = 2.59
middleMan3.strikeOuts =44
middleMan3.games = 25
middleMan3.saves = 0

Closer = Pitchers()
Closer.name = 'Alfredo Aceves'
Closer.wins = 0
Closer.losses = 6
Closer.era = 4.32
Closer.strikeOuts = 40
Closer.games = 39
Closer.saves = 19

middleMan4 = Pitchers()
middleMan4.name = 'Michael Bowden'
middleMan4.wins = 0
middleMan4.losses = 0
middleMan4.era = 3.00
middleMan4.strikeOuts = 3
middleMan4.games = 2
middleMan4.saves = 0

middleMan5 = Pitchers()
middleMan5.name = 'Vicente Padilla'
middleMan5.wins = 2
middleMan5.losses = 0
middleMan5.era = 3.48
middleMan5.strikeOuts = 31
middleMan5.games = 31
middleMan5.saves = 1

starter7 = Pitchers()
starter7.name = 'Aaron Cook'
starter7.wins = 2
starter7.losses = 1
starter7.era = 4.32
starter7.strikeOuts = 2
starter7.games = 3
starter7.saves = 0

middleMan6 = Pitchers()
middleMan6.name = 'Justin Thomas'
middleMan6.wins = 0
middleMan6.losses = 0
middleMan6.era = 7.71
middleMan6.strikeOuts = 4
middleMan6.games = 7
middleMan6.saves = 0

middleMan7 = Pitchers()
middleMan7.name = 'Andrew Miller'
middleMan7.wins = 2
middleMan7.losses = 0
middleMan7.era = 1.89
middleMan7.strikeOuts = 20
middleMan7.games = 23
middleMan7.saves = 0


repeat = 'Y'
while repeat == 'Y':

    player = input("Please enter the name of the player whose stats you want to see \n")

    if player == 'Jarrod Saltalamacchia':
        print(Catcher1.name)
        print("Batting Average is ",Catcher1.battingAverage)
        print("he has ",Catcher1.hits,"hits")
        print("At Bats = ",Catcher1.atBats)
        print("RBI's = ",Catcher1.runsBattedIn)
        print("he has ",Catcher1.homeRuns," home runs")

    elif player == 'Adrian Gonzales':
        print(firstBaseman1.name)
        print("Batting Average is ",firstBaseman1.battingAverage)
        print("he has ",firstBaseman1.hits,"hits")
        print("At Bats = ",firstBaseman1.atBats)
        print("RBI's = ",firstBaseman1.runsBattedIn)
        print("he has ",firstBaseman1.homeRuns," home runs")

    elif player == 'Dustin Pedroia':
        print(secondBaseman.name)
        print("Batting Average is ",secondBaseman.battingAverage)
        print("he has ",secondBaseman.hits,"hits")
        print("At Bats = ",secondBaseman.atBats)
        print("RBI's = ",secondBaseman.runsBattedIn)
        print("he has ",secondBaseman.homeRuns," home runs")

    elif player == 'Mike Aviles':
        print(shortStop.name)
        print("Batting Average is ",shortStop.battingAverage)
        print("he has ",shortStop.hits,"hits")
        print("At Bats = ",shortStop.atBats)
        print("RBI's = ",shortStop.runsBattedIn)
        print("he has ",shortStop.homeRuns," home runs")

    elif player == 'Will Middlebrooks':
        print(thirdBaseman.name)
        print("Batting Average is ",thirdBaseman.battingAverage)
        print("he has ",thirdBaseman.hits,"hits")
        print("At Bats = ",thirdBaseman.atBats)
        print("RBI's = ",thirdBaseman.runsBattedIn)
        print("he has ",thirdBaseman.homeRuns," home runs")

    elif player == 'Jacoby Ellsbury':
        print(outfield1.name)
        print("Batting Average is ",outfield1.battingAverage)
        print("he has ",outfield1.hits,"hits")
        print("At Bats = ",outfield1.atBats)
        print("RBI's = ",outfield1.runsBattedIn)
        print("he has ",outfield1.homeRuns," home runs")

    elif player == 'Carl Crawford':
        print(outfield2.name)
        print("Batting Average is ",outfield2.battingAverage)
        print("he has ",outfield2.hits,"hits")
        print("At Bats = ",outfield2.atBats)
        print("RBI's = ",outfield2.runsBattedIn)
        print("he has ",outfield2.homeRuns," home runs")

    elif player == 'Daniel Nava':
        print(outfield3.name)
        print("Batting Average is ",outfield3.battingAverage)
        print("he has ",outfield3.hits,"hits")
        print("At Bats = ",outfield3.atBats)
        print("RBI's = ",outfield3.runsBattedIn)
        print("he has ",outfield3.homeRuns," home runs")

    elif player == 'Ryan Sweeney':
        print(outfield4.name)
        print("Batting Average is ",outfield4.battingAverage)
        print("he has ",outfield4.hits,"hits")
        print("At Bats = ",outfield4.atBats)
        print("RBI's = ",outfield4.runsBattedIn)
        print("he has ",outfield4.homeRuns," home runs")

    elif player == 'Cody Ross':
        print(outfield5.name)
        print("Batting Average is ",outfield5.battingAverage)
        print("he has ",outfield5.hits,"hits")
        print("At Bats = ",outfield5.atBats)
        print("RBI's = ",outfield5.runsBattedIn)
        print("he has ",outfield5.homeRuns," home runs")

    elif player == 'Scott Podsednik':
        print(outfield6.name)
        print("Batting Average is ",outfield6.battingAverage)
        print("he has ",outfield6.hits,"hits")
        print("At Bats = ",outfield6.atBats)
        print("RBI's = ",outfield6.runsBattedIn)
        print("he has ",outfield6.homeRuns," home runs")

    elif player == 'Kelly Shoppach':
        print(catcher2.name)
        print("Batting Average is ",catcher2.battingAverage)
        print("he has ",catcher2.hits,"hits")
        print("At Bats = ",catcher2.atBats)
        print("RBI's = ",catcher2.runsBattedIn)
        print("he has ",catcher2.homeRuns," home runs")

    elif player == 'Lars Anderson':
        print(firstBaseman2.name)
        print("Batting Average is ",firstBaseman2.battingAverage)
        print("he has ",firstBaseman2.hits,"hits")
        print("At Bats = ",firstBaseman2.atBats)
        print("RBI's = ",firstBaseman2.runsBattedIn)
        print("he has ",firstBaseman2.homeRuns," home runs")

    elif player == 'Ryan Kalish':
        print(outfield7.name)
        print("Batting Average is ",outfield7.battingAverage)
        print("he has ",outfield7.hits,"hits")
        print("At Bats = ",outfield7.atBats)
        print("RBI's = ",outfield7.runsBattedIn)
        print("he has ",outfield7.homeRuns," home runs")

    elif player == 'David Ortiz':
        print(designatedHitter.name)
        print("Batting Average is ",designatedHitter.battingAverage)
        print("he has ",designatedHitter.hits,"hits")
        print("At Bats = ",designatedHitter.atBats)
        print("RBI's = ",designatedHitter.runsBattedIn)
        print("he has ",designatedHitter.homeRuns," home runs")

    elif player == 'Josh Beckett':
        print(starter1.name)
        print("has ",starter1.wins," wins")
        print("has ",starter1.losses," losses")
        print("ERA = ",starter1.era)
        print("he has ",starter1.strikeOuts," strike outs")
        print("has played in ",starter1.games," games")

    elif player == 'Jon Lester':
        print(starter2.name)
        print("has ",starter2.wins," wins")
        print("has ",starter2.losses," losses")
        print("ERA = ",starter2.era)
        print("he has ",starter2.strikeOuts," strike outs")
        print("has played in ",starter2.games," games")

    elif player == 'Felix Doubront':
        print(starter3.name)
        print("has ",starter3.wins," wins")
        print("has ",starter3.losses," losses")
        print("ERA = ",starter3.era)
        print("he has ", starter3.strikeOuts," strike outs")
        print("has played in ",starter3.games," games")

    elif player == 'Daniel Bard':
        print(starter4.name)
        print("has ",starter4.wins," wins")
        print("has ",starter4.losses," losses")
        print("ERA = ",starter4.era)
        print("he has ",starter4.strikeOuts, " strike outs")
        print("has played in ",starter4.games," games")

    elif player == 'Clay Buchholz':
        print(starter5.name)
        print("has ",starter5.wins," wins")
        print("has ",starter5.losses," losses")
        print("ERA = ",starter5.era)
        print("he has ",starter5.strikeOuts," strike outs")
        print("has played in ",starter5.games," games")

    elif player == 'Scott Atchison':
        print(middleMan1.name)
        print("he has ",middleMan1.wins," wins")
        print("he has ",middleMan1.losses," losses")
        print("ERA = ",middleMan1.era)
        print("he has ",middleMan1.strikeOuts, " strike outs")
        print("has played in ",middleMan1.games," games")
        print("he has ",middleMan1.saves," saves")

    elif player == 'Matt Albers':
        print(middleMan2.name)
        print("he has ",middleMan2.wins," wins")
        print("he has ",middleMan2.losses," losses")
        print("ERA = ",middleMan2.era)
        print("he has ",middleMan2.strikeOuts," strike outs")
        print("has played in ",middleMan2.games," games")
        print("he has ",middleMan2.saves," saves")

    elif player == 'Franklin Morales':
        print(middleMan3.name)
        print("he has ",middleMan3.wins," wins")
        print("he has ",middleMan3.losses," losses")
        print("ERA = ",middleMan3.era)
        print("he has ",middleMan3.strikeOuts," strike outs")
        print("has played in ",middleMan3.games," games")
        print("he has ",middleMan3.saves," saves")

    elif player == 'Alfredo Aceves':
        print(Closer.name)
        print("he has ",Closer.wins," wins")
        print("he has ",Closer.losses," losses")
        print("ERA = ",Closer.era)
        print("he has ",Closer.strikeOuts," strike outs")
        print("has played in ",Closer.games," games")
        print("he has ",Closer.saves," saves")

    elif player == 'Nick Punto':
        print(thirdBaseman2.name)
        print("batting average is ",thirdBaseman2.battingAverage)
        print("he has ",thirdBaseman2.hits," hits")
        print("he has had ",thirdBaseman2.atBats," at Bats")
        print("RBI's = ",thirdBaseman2.runsBattedIn)
        print("he has ",thirdBaseman2.homeruns," homeruns")

    elif player == 'Marlon Byrd':
        print(outfield8.name)
        print("batting average is ",outfield8.battingAverage)
        print("he has ",outfield8.hits," hits")
        print("he has had ",outfield8.atBats," at Bats")
        print("RBI's = ",outfield8.runsBattedIn)
        print("he has ",outfield8.homeRuns," homeruns")

    elif player == 'Darnell McDonald':
        print(outfield9.name)
        print("batting average is ",outfield9.battingAverage)
        print("he has ",outfield9.hits," hits")
        print("he has had ",outfield9.atBats," at Bats")
        print("RBI's = ",outfield9.runsBattedIn)
        print("he has ",outfield9.homeRuns," homeruns")

    elif player == 'Michael Bowden':
        print(middleMan4.name)
        print("He has ",middleMan4.wins," wins")
        print("He has ",middleMan4.losses," losses")
        print("ERA = ",middleMan4.era)
        print("He has ",middleMan4.strikeOuts," strike outs")
        print("Has played in ",middleMan4.games,"games")
        print("He has ",middleMan4.saves,"saves")

    elif player == 'Vicente Padilla':
        print(middleMan5.name)
        print("He has ",middleMan5.wins," wins")
        print("He has ",middleMan5.losses," losses")
        print("ERA = ",middleMan5.era)
        print("He has ",middleMan5.strikeOuts," strike outs")
        print("has played in ",middleMan5.games," games")
        print("He has ",middleMan5.saves," save")

    elif player == 'Aaron Cook':
        print(starter7.name)
        print("He has ",starter7.wins," wins")
        print("He has ",starter7.losses," losses") 
        print("ERA = ",starter7.era)
        print("He has ",starter7.strikeOuts," strike Outs")
        print("Has played in ",starter7.games," games")

    elif player == 'Justin Thomas':
        print(middleMan6.name)
        print("He has ",middleMan6.wins," wins")
        print("He has ",middleMan6.losses," losses")
        print("ERA = ",middleMan6.era)
        print("he has ",middleMan6.strikeOuts," strike outs")
        print("has played in ",middleMan6.games," games")

    elif player == 'Che-Hsuan Lin':
        print(outfield10.name)
        print("Batting Average is ",outfield10.battingAverage)
        print("He has ",outfield10.hits," hits")
        print("He has had ",outfield10.atBats," at bats")
        print("RBI's = ",outfield10.runsBattedIn)
        print("he has ", outfield10.homeRuns," homeruns")

    elif player == 'Andrew Miller':
        print(middleMan7.name)
        print("He has ",middleMan7.wins," wins")
        print("He has ",middleMan7.losses," losses")
        print("ERA = ",middleMan7.era)
        print("He has ",middleMan7.strikeOuts," strike outs")
        print("He has played in ",middleMan7.games," games")
        print("he has ",middleMan7.saves," saves")

    else:
        repeat = input("what? Do you want to try again. Enter Y or N \n")
        break

    repeat = input("Would you like to check another player's stats? Enter Y or N \n")
    
          


